<?PHP $this->_extends('_layouts/manager_layout');?>
<?PHP $this->_block('contents');?>
<style>
.pa{float:left; width:500px}
.po{float:left; width:120px}
</style>
<h2 class="aa1">商品分类</h2>
<form action="" method="post">
	<div>
	父分类:
	<div class="pa">
	<?php 
		$parents_category=Helper_Array::toHashMap($parents->toArray(),'category_id','name');
		Q::control('dropdownlist','parent_id',array('items'=>array('选择父分类')+$parents_category,'value'=>$category->parent_id))->display();?>
	</div>
	</div>
	<div>商品分类名:<input name="name" value="<?=$category->name?>" size="40"/></div>
	<div> <input type="submit" value="修改"  /> </div>
	
	<input type="hidden" name="category_id" value="<?=$category->category_id?>"  />

</form>

<br>
<div>
<a href="<?php echo url('storemanager/CategoriesEdit')?>" classs="anniu">添加商品分类</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="<?php echo url('storemanager/Categories')?>" classs="anniu">商品分类</a>
</div>
<br><br>


<?PHP $this->_endblock();?>

